package com.minimalist.lindi.service;

import com.minimalist.common.entity.lindi.po.LindiPurchaseApplicationProjectItem;
import com.minimalist.common.entity.lindi.vo.purchaseapplicationprojectitem.LindiPurchaseApplicationProjectItemVO;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 林地指标交易平台_购买申请项目表 服务层。
 *
 * @author 11987
 * @since 2025-07-01
 */
public interface LindiPurchaseApplicationProjectItemService extends IService<LindiPurchaseApplicationProjectItem>{

    /**
     * 根据购买申请ID查询项目指标列表
     *
     * @param purchaseApplicationId 购买申请ID
     * @return 项目指标列表
     */
    List<LindiPurchaseApplicationProjectItemVO> getProjectItemListByPurchaseApplicationId(Long purchaseApplicationId);

    /**
     * 批量添加项目指标
     *
     * @param projectItemList 项目指标列表
     */
    void batchAddProjectItems(List<LindiPurchaseApplicationProjectItemVO> projectItemList);

    /**
     * 根据购买申请ID删除项目指标
     *
     * @param purchaseApplicationId 购买申请ID
     */
    void deleteProjectItemsByPurchaseApplicationId(Long purchaseApplicationId);
}
